<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<h1>
	<fmt:message key="person.form.title" />
</h1>
<c:url var="url" value="/person/saveForm.html" />
<form:form action="${url}" commandName="personEntity" method="POST">
	<form:hidden path="id" />
	<fieldset>
		<div class="form-row">
			<label for="firsName"><fmt:message key="person.form.firstName" />:</label>
			<span class="input"> <form:input path="firstName" /></span>
		</div>
		<div class="form-row">
			<label for="lastName"><fmt:message key="person.form.lastName" />:</label> 
			<span class="input"><form:input path="lastName" /></span>
		</div>
		<div class="form-row">
			<label for="login"><fmt:message key="person.form.login" />:</label> 
			<span class="input"><form:input path="login" /></span>
		</div>	
		<div class="form-buttons">
			<div class="button">
				<input name="submit" type="submit"
					value="<fmt:message key="button.save"/>" />
			</div>
		</div>
	</fieldset>
</form:form>
